package com.itheima.file;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;

/**
 * @author Anomaly
 * @date 2023/2/8 13:48
 */
public class FileDemo2 {
    public static void main(String[] args) throws IOException {
        File file = new File("file-io/src/test.txt");
        System.out.println(file.getAbsoluteFile());
        System.out.println(file.getName());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());
        System.out.println(file.getPath());
        System.out.println("==========================");
        File file1 = new File("E:\\桌面\\logback类库");
        System.out.println(Arrays.toString(file1.list()));
    }
}
